<div style="margin-top: 3px;">
	<table id="serviceListTbl" class="grid" cellspacing="0" cellpadding="0" border="0" style="width: 100%">
        <thead style="text-transform: uppercase;">
            <tr>
                <th class="first">{translate}Service name{/translate}</th>
                <th style="width: 80px;">{translate}Unit{/translate}</th>
                <th style="width: 80px;">{translate}Quantity{/translate}</th>
                <th style="width: 110px;">{translate}Unit price{/translate}</th>
                <th style="width: 110px;">{translate}Price{/translate}</th>
                <th style="width: 110px;">{translate}Insurance payment{/translate}</th>
                <th class="last" style="width: 110px;">{translate}Patient payment{/translate}</th>  
            </tr>
        </thead>
	    <tbody>
	    {if !empty($serviceList)}
	        <tr><td colspan="7" class="first last group_title">{translate}Service{/translate}</td></tr>
		{foreach from=$serviceList item=item}
		    <tr>
	            <td class="first"><div style="white-space: normal" id="serviceName_{$item.pay_payment_item_id}">{if !empty($item.service_code)}<i>{$item.service_code}</i> {/if}{$item.service_name}</div></td>
		        <td class="field-number">{$item.unit}</td>
				<td class="field-number">{$item.quantity}</td>
				<td class="field-number">{$item.unit_price_formatted}</td>                                             
				<td class="field-number">{$item.original_price_formatted}</td>
				<td class="field-number">{$item.insurance_price_formatted}</td>
				<td class="field-number last">{$item.patient_price_formatted}</td>     
		    </tr>
		{/foreach}
		{/if}
        {if !empty($medicineList)}
            <tr><td colspan="7" class="first last group_title">{translate}Medicine{/translate}</td></tr>
        {foreach from=$medicineList item=item}
            <tr>
                <td class="first"><div style="white-space: normal" id="serviceName_{$item.pay_payment_item_id}">{$item.service_name}</div></td>
                <td class="field-number">{$item.unit}</td>
                <td class="field-number">{$item.quantity}</td>
                <td class="field-number">{$item.unit_price_formatted}</td>                                             
                <td class="field-number">{$item.original_price_formatted}</td>
                <td class="field-number">{$item.insurance_price_formatted}</td>
                <td class="field-number last">{$item.patient_price_formatted}</td>     
            </tr>
        {/foreach}
        {/if}				
        {if empty($serviceList) && empty($medicineList)}
		    <tr><td colspan="7" class="first last">{translate}The patient has no information on payment items{/translate}</td></tr>
		{/if}
		</tbody>
	</table>
</div>